﻿using System;
using System.Runtime.InteropServices;

namespace WinwiseARDrone.API
{
    public class NavDataArgs : EventArgs
    {
        public const string EmergencyStatus = "CTRL_DEFAULT";

        public navdata_demo_t NavData { get; set; }

        public string Status 
        {
            get
            {
                IntPtr ptr = DroneController.ctrl_state_str(NavData.ctrl_state);
                return Marshal.PtrToStringAnsi(ptr);
            }
        }
    }
}
